package com.garlic.face.jlf.utils;

import com.garlic.face.jlf.App;

import es.dmoral.toasty.Toasty;

public class ToastUtils {

    public static final int SUCCESS = 0;
    public static final int ERROR = 1;
    public static final int INFO = 2;

    public static void toastShow(String text, int type) {
        if (type == SUCCESS) {
            Toasty.success(App.getContext(), text).show();
        } else if (type == ERROR) {
            Toasty.error(App.getContext(), text).show();
        } else {
            Toasty.info(App.getContext(), text).show();
        }

    }

}